import { createApp } from 'vue'
// import 'vue-tsx-support/enable-check'
import App from './App'
import router from './router'
import 'vant/lib/index.css'

// 初始化环境
const isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
const isAndroid = /android/i.test(navigator.userAgent);

if (isiOS) {
    document.body.setAttribute('data-os', 'ios');
} else if (isAndroid) {
    document.body.setAttribute('data-os', 'android');
}
const app = createApp(App);
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css
import { getQiniuToken } from './command/netTool';
// 自定义warnHandler函数，不做任何操作即可阻止控制台warning
app.config.warnHandler = () => { };
app.use(vue3videoPlay)
app.use(router).mount('#app');

